/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package old;

import java.io.Reader;
import lucene.Analyzers.stantard.StandardAnalyzer;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;


public class MetaphoneReplacementAnalyzer extends Analyzer {
    
    @Override
    public TokenStream tokenStream(String fieldName, Reader reader) {
        TokenStream result = new MetaphoneReplacementFilter(                
                    new StandardAnalyzer().tokenStream(fieldName, reader)); 
        return result;
    }
    
}